package com.ysh.service.impl;


import com.ysh.dao.ItemDao;
import com.ysh.dao.UserDao;
import com.ysh.dao.impl.ItemDaoImpl;
import com.ysh.dao.impl.UserDaoImpl;
import com.ysh.domain.Item;
import com.ysh.domain.User;
import com.ysh.service.ItemService;
import com.ysh.service.UserService;

import java.util.List;

/*
    Service 业务层实现类
 */
public class ItemServiceImpl implements ItemService {
    ItemDao itemDao = new ItemDaoImpl();

    /*
        查询商品信息
     */
    @Override
    public List<Item> findItems() {
        return itemDao.findItems();
    }

    /*
            添加商品
         */
    @Override
    public int addItem(Item item) {
        return itemDao.addItem(item);
    }
}
